<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> {$sitename} / <a href="{url('index/index')}">内容管理</a>{$path}</div>
<div class="m10">
<div class="table-head"><a href="{url('index/index',array('id'=>$info['channel_id']))}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a> <strong>编辑内容</strong></div>
<form id="form" action="{url('index/save')}" method="post">
<input type="hidden" name="fid" value="{$fid}" />
<input type="hidden" name="mid" value="{$mid}" />
<table class="table">
    <tr><th>栏目和特性:</th><td>
<div class="select-box">
    <a href="###" class="select-button tipa">-- 选择所在栏目 -- <i class="iconfont select-down">&#xf0d7;</i></a>
    <div class="select-list select-a"><ul id="ztree1">{model('channel')->CreateClassTree($rootid,$info['channel_id'])}</ul></div>
</div>
<div class="select-box">
    <a href="###" class="select-button tipb">-- 选择内容特性 -- <i class="iconfont select-down">&#xf0d7;</i></a>
    <div class="select-list select-b"><ul id="ztree2">{model('special')->CreateSpecialTree($rootid,$info['channel_id'],$info['special'])}</ul></div>
</div>
    </td></tr>
    <tr><th>内容标题:</th><td><input datatype="*" nullmsg="标题必须填写" type="text" class="input w400" name="title" value="{$info['title']}" /><input readonly="readonly" type="text" name="fontcolor"  class="input w60 ui-color" value="{$info['fontcolor']}" />颜色</td></tr>
    <tr><th>内容属性:</th><td>排序&nbsp;&nbsp;<input datatype="n" name="sort" type="text" class="input w50" value="{$info['sort']}" />&nbsp;&nbsp;浏览量&nbsp;&nbsp;<input datatype="n" name="views" type="text" class="input w50" value="{$info['views']}" />&nbsp;&nbsp;责任编辑&nbsp;&nbsp;<input datatype="*" nullmsg="责任编辑不能为空"  name="editor" type="text" class="input w50" value="{$info['editor']}" /></td></tr>
    <tr><th>URL跳转:</th><td><input type="text" class="input w400" name="url" value="{$info['url']}" /></td></tr>
    {loop $module $vo}
    <tr><th>{$vo['title']}:</th><td>{$vo['input']} <span class="gray">{$vo['msg']}</span></td></tr>
    {/loop} 
</table>
<div class="btn fn-tac">
    <a href="{url('index/index',array('id'=>$info['channel_id']))}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a> 
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','dialog','form','editor','tree','tip','date','color',function(){ 
    $(".tipa").powerFloat({target: $(".select-a")});
    $(".tipb").powerFloat({target: $(".select-b")});
    $("#ztree1").treeview({collapsed: true,animated: "medium",control:"#sidetreechannel",persist: "location"});
    $("#ztree2").treeview({collapsed: true,animated: "medium",control:"#sidetreespecial",persist: "location"});
    $('#form').forms({types:'post',uploads:'{url('uploads/index')}'});
})      
</script>